Building Low-Code Applications with Mendix by Bryan Kenneweg Imran Kasam and Micah McMullen

Building Low-Code Applications with Mendix by Bryan Kenneweg Imran Kasam and Micah McMullen

Author:Bryan Kenneweg, Imran Kasam and Micah McMullen
Language: eng
Format: epub
Publisher: Packt Publishing Ltd.
Published: 2021-02-24T00:00:00+00:00


Figure 9.8 – Examples of urlEncode and urlDecode

It is used in a URL when consuming an API. It is particularly helpful when you are unsure of the value that will be used because, perhaps, it's from a user input screen.

parseInteger

This function will attempt to convert a given string to an integer.

Its possible use case could be when there is a string attribute in your database that actually contains an integer value. Perhaps this was something a user mistakenly entered or provided by an external resource. The string attribute may read as 100 but to the application, that's not a number. You cannot add other numbers to it, it's just a string that contains the characters 1, 0, and 0. So, to do anything "number-like" with that value, you first must convert it to an integer:

Important note

This function will attempt to convert the given string to an integer. However, if the string contains non-numeric characters, an error will result.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.